import os

class BaseConfig:
    SECRET_KEY = os.getenv('SECRET_KEY', 'secret string')
    SQLALCHEMY_DATABASE_URI = os.getenv('DATABASE_URL', 'data.sqlite')
    SQLALCHEMY_TRACK_MODIFICATIONS = False

class Production(BaseConfig):
    FLASK_CONFIG = 'production'

class Development(BaseConfig):
    FLASK_CONFIG = 'development'

config = {
    'production': Production,
    'development': Development
}